package com.gc.common.mapper;

import com.gc.common.entity.Setting;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SettingMapper {
    int insert(Setting record);

    int insertSelective(Setting record);

    List<Setting> selectAll();

    List<Map<String, Object>> selectAllMap();

    Setting selectByName(@Param("settingName") String settingName);

    int updateByName(@Param("settingName") String settingName, @Param("settingValue") String settingValue);
}